package com.xiaozhen.jt809.constant;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/9/16 10:03
 * @description: 809协议上行常量
 */
public class JT809RspCodeConstants {

    /**
     * 从链路登陆应答代码
     */
    public static class DownConnect{
        //接入成功
        public static final int SUCCESS = 0x00;
        //校验码错误
        public static final int VERIFY_CODE_ERROR = 0x01;
        //资源紧张（已占用）
        public static final int CONNECT_ERROR = 0x02;
    }


    /**
     * 主链路断开通知消息
     */
    public static class UpDisconnectInform{
        //主链路断开
        public static final int DISCONNECT = 0x00;
        //其他
        public static final int OTHER_ERROR = 0x01;
    }

    /**
     * 下级平台主动关闭从链路通知消息
     */
    public static class UpCloseLinkInform{
        //从链路断开
        public static final int DISCONNECT = 0x00;
        //其他
        public static final int OTHER_ERROR = 0x01;
    }
}
